home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #5 & #6 / Amiga Plus CD - 1995 - No. 5 and 6.iso / pd / netz / amyboard / xboard-3.3.pl0 / configure < prev    next >
Text File  |  1995-08-12  |  74KB  |  2,839 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.3 
  5. # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --with-x                use the X Window System"
  16. ac_help="$ac_help
  17.   --enable-ptys   Force use of pseudo-ttys to communicate with child processes
  18.   --disable-ptys  Force use of pipes to communicate with child processes"
  19. ac_help="$ac_help
  20. "
  21.  
  22. # Initialize some variables set by options.
  23. # The variables have the same names as the options, with
  24. # dashes changed to underlines.
  25. build=NONE
  26. cache_file=./config.cache
  27. exec_prefix=NONE
  28. host=NONE
  29. no_create=
  30. nonopt=NONE
  31. no_recursion=
  32. prefix=NONE
  33. program_prefix=NONE
  34. program_suffix=NONE
  35. program_transform_name=s,x,x,
  36. silent=
  37. site=
  38. srcdir=
  39. target=NONE
  40. verbose=
  41. x_includes=NONE
  42. x_libraries=NONE
  43.  
  44. # Initialize some other variables.
  45. subdirs=
  46.  
  47. ac_prev=
  48. for ac_option
  49. do
  50.  
  51.   # If the previous option needs an argument, assign it.
  52.   if test -n "$ac_prev"; then
  53.     eval "$ac_prev=\$ac_option"
  54.     ac_prev=
  55.     continue
  56.   fi
  57.  
  58.   case "$ac_option" in
  59.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  60.   *) ac_optarg= ;;
  61.   esac
  62.  
  63.   # Accept the important Cygnus configure options, so we can diagnose typos.
  64.  
  65.   case "$ac_option" in
  66.  
  67.   -build | --build | --buil | --bui | --bu | --b)
  68.     ac_prev=build ;;
  69.   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  70.     build="$ac_optarg" ;;
  71.  
  72.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  73.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  74.     ac_prev=cache_file ;;
  75.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  76.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  77.     cache_file="$ac_optarg" ;;
  78.  
  79.   -disable-* | --disable-*)
  80.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  81.     # Reject names that are not valid shell variable names.
  82.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  83.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  84.     fi
  85.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  86.     eval "enable_${ac_feature}=no" ;;
  87.  
  88.   -enable-* | --enable-*)
  89.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  90.     # Reject names that are not valid shell variable names.
  91.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  92.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  93.     fi
  94.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  95.     case "$ac_option" in
  96.       *=*) ;;
  97.       *) ac_optarg=yes ;;
  98.     esac
  99.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  100.  
  101.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  102.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  103.   | --exec | --exe | --ex)
  104.     ac_prev=exec_prefix ;;
  105.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  106.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  107.   | --exec=* | --exe=* | --ex=*)
  108.     exec_prefix="$ac_optarg" ;;
  109.  
  110.   -gas | --gas | --ga | --g)
  111.     # Obsolete; use --with-gas.
  112.     with_gas=yes ;;
  113.  
  114.   -help | --help | --hel | --he)
  115.     # Omit some internal or obsolete options to make the list less imposing.
  116.     # This message is too long to be a string in the A/UX 3.1 sh.
  117.     cat << EOF
  118. Usage: configure [options] [host]
  119. Options: [defaults in brackets after descriptions]
  120. Configuration:
  121.   --cache-file=FILE       cache test results in FILE
  122.   --help                  print this message
  123.   --no-create             do not create output files
  124.   --quiet, --silent       do not print \`checking...' messages
  125.   --version               print the version of autoconf that created configure
  126. Directory and file names:
  127.   --prefix=PREFIX         install architecture-independent files in PREFIX
  128.                           [$ac_default_prefix]
  129.   --exec-prefix=PREFIX    install architecture-dependent files in PREFIX
  130.                           [same as prefix]
  131.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  132.   --program-prefix=PREFIX prepend PREFIX to installed program names
  133.   --program-suffix=SUFFIX append SUFFIX to installed program names
  134.   --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  135. Host type:
  136.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  137.   --host=HOST             configure for HOST [guessed]
  138.   --target=TARGET         configure for TARGET [TARGET=HOST]
  139. Features and packages:
  140.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  141.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  142.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  143.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  144.   --x-includes=DIR        X include files are in DIR
  145.   --x-libraries=DIR       X library files are in DIR
  146. --enable and --with options recognized:$ac_help
  147. EOF
  148.     exit 0 ;;
  149.  
  150.   -host | --host | --hos | --ho)
  151.     ac_prev=host ;;
  152.   -host=* | --host=* | --hos=* | --ho=*)
  153.     host="$ac_optarg" ;;
  154.  
  155.   -nfp | --nfp | --nf)
  156.     # Obsolete; use --without-fp.
  157.     with_fp=no ;;
  158.  
  159.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  160.   | --no-cr | --no-c)
  161.     no_create=yes ;;
  162.  
  163.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  164.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  165.     no_recursion=yes ;;
  166.  
  167.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  168.     ac_prev=prefix ;;
  169.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  170.     prefix="$ac_optarg" ;;
  171.  
  172.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  173.   | --program-pre | --program-pr | --program-p)
  174.     ac_prev=program_prefix ;;
  175.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  176.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  177.     program_prefix="$ac_optarg" ;;
  178.  
  179.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  180.   | --program-suf | --program-su | --program-s)
  181.     ac_prev=program_suffix ;;
  182.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  183.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  184.     program_suffix="$ac_optarg" ;;
  185.  
  186.   -program-transform-name | --program-transform-name \
  187.   | --program-transform-nam | --program-transform-na \
  188.   | --program-transform-n | --program-transform- \
  189.   | --program-transform | --program-transfor \
  190.   | --program-transfo | --program-transf \
  191.   | --program-trans | --program-tran \
  192.   | --progr-tra | --program-tr | --program-t)
  193.     ac_prev=program_transform_name ;;
  194.   -program-transform-name=* | --program-transform-name=* \
  195.   | --program-transform-nam=* | --program-transform-na=* \
  196.   | --program-transform-n=* | --program-transform-=* \
  197.   | --program-transform=* | --program-transfor=* \
  198.   | --program-transfo=* | --program-transf=* \
  199.   | --program-trans=* | --program-tran=* \
  200.   | --progr-tra=* | --program-tr=* | --program-t=*)
  201.     program_transform_name="$ac_optarg" ;;
  202.  
  203.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  204.   | -silent | --silent | --silen | --sile | --sil)
  205.     silent=yes ;;
  206.  
  207.   -site | --site | --sit)
  208.     ac_prev=site ;;
  209.   -site=* | --site=* | --sit=*)
  210.     site="$ac_optarg" ;;
  211.  
  212.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  213.     ac_prev=srcdir ;;
  214.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  215.     srcdir="$ac_optarg" ;;
  216.  
  217.   -target | --target | --targe | --targ | --tar | --ta | --t)
  218.     ac_prev=target ;;
  219.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  220.     target="$ac_optarg" ;;
  221.  
  222.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  223.     verbose=yes ;;
  224.  
  225.   -version | --version | --versio | --versi | --vers)
  226.     echo "configure generated by autoconf version 2.3"
  227.     exit 0 ;;
  228.  
  229.   -with-* | --with-*)
  230.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  231.     # Reject names that are not valid shell variable names.
  232.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  233.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  234.     fi
  235.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  236.     case "$ac_option" in
  237.       *=*) ;;
  238.       *) ac_optarg=yes ;;
  239.     esac
  240.     eval "with_${ac_package}='$ac_optarg'" ;;
  241.  
  242.   -without-* | --without-*)
  243.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  244.     # Reject names that are not valid shell variable names.
  245.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  246.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  247.     fi
  248.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  249.     eval "with_${ac_package}=no" ;;
  250.  
  251.   --x)
  252.     # Obsolete; use --with-x.
  253.     with_x=yes ;;
  254.  
  255.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  256.   | --x-incl | --x-inc | --x-in | --x-i)
  257.     ac_prev=x_includes ;;
  258.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  259.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  260.     x_includes="$ac_optarg" ;;
  261.  
  262.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  263.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  264.     ac_prev=x_libraries ;;
  265.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  266.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  267.     x_libraries="$ac_optarg" ;;
  268.  
  269.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  270.     ;;
  271.  
  272.   *) 
  273.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  274.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  275.     fi
  276.     if test "x$nonopt" != xNONE; then
  277.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  278.     fi
  279.     nonopt="$ac_option"
  280.     ;;
  281.  
  282.   esac
  283. done
  284.  
  285. if test -n "$ac_prev"; then
  286.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  287. fi
  288.  
  289. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  290.  
  291. # File descriptor usage:
  292. # 0 standard input
  293. # 1 file creation
  294. # 2 errors and warnings
  295. # 3 some systems may open it to /dev/tty
  296. # 4 used on the Kubota Titan
  297. # 6 checking for... messages and results
  298. # 5 compiler messages saved in config.log
  299. if test "$silent" = yes; then
  300.   exec 6>/dev/null
  301. else
  302.   exec 6>&1
  303. fi
  304. exec 5>./config.log
  305.  
  306. echo "\
  307. This file contains any messages produced by compilers while
  308. running configure, to aid debugging if configure makes a mistake.
  309. " 1>&5
  310.  
  311. # Strip out --no-create and --no-recursion so they do not pile up.
  312. # Also quote any args containing shell metacharacters.
  313. ac_configure_args=
  314. for ac_arg
  315. do
  316.   case "$ac_arg" in
  317.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  318.   | --no-cr | --no-c) ;;
  319.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  320.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  321.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  322.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  323.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  324.   esac
  325. done
  326.  
  327. # NLS nuisances.
  328. # Only set LANG and LC_ALL to C if already set.
  329. # These must not be set unconditionally because not all systems understand
  330. # e.g. LANG=C (notably SCO).
  331. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  332. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  333.  
  334. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  335. rm -rf conftest* confdefs.h
  336. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  337. echo > confdefs.h
  338.  
  339. # A filename unique to this package, relative to the directory that
  340. # configure is in, which we can look for to find out if srcdir is correct.
  341. ac_unique_file=xboard.c
  342.  
  343. # Find the source files, if location was not specified.
  344. if test -z "$srcdir"; then
  345.   ac_srcdir_defaulted=yes
  346.   # Try the directory containing this script, then its parent.
  347.   ac_prog=$0
  348.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  349.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  350.   srcdir=$ac_confdir
  351.   if test ! -r $srcdir/$ac_unique_file; then
  352.     srcdir=..
  353.   fi
  354. else
  355.   ac_srcdir_defaulted=no
  356. fi
  357. if test ! -r $srcdir/$ac_unique_file; then
  358.   if test "$ac_srcdir_defaulted" = yes; then
  359.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  360.   else
  361.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  362.   fi
  363. fi
  364. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  365.  
  366. # Prefer explicitly selected file to automatically selected ones.
  367. if test -z "$CONFIG_SITE"; then
  368.   if test "x$prefix" != xNONE; then
  369.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  370.   else
  371.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  372.   fi
  373. fi
  374. for ac_site_file in $CONFIG_SITE; do
  375.   if test -r "$ac_site_file"; then
  376.     echo "loading site script $ac_site_file"
  377.     . "$ac_site_file"
  378.   fi
  379. done
  380.  
  381. if test -r "$cache_file"; then
  382.   echo "loading cache $cache_file"
  383.   . $cache_file
  384. else
  385.   echo "creating cache $cache_file"
  386.   > $cache_file
  387. fi
  388.  
  389. ac_ext=c
  390. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  391. ac_cpp='$CPP $CPPFLAGS'
  392. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
  393. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
  394.  
  395. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  396.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  397.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  398.     ac_n= ac_c='
  399. ' ac_t='    '
  400.   else
  401.     ac_n=-n ac_c= ac_t=
  402.   fi
  403. else
  404.   ac_n= ac_c='\c' ac_t=
  405. fi
  406.  
  407.  
  408.  
  409.  
  410. PRODUCT=xboard
  411. VERSION=3.3
  412. PATCHLEVEL=0
  413.  
  414. if test -z "$CFLAGS" ; then
  415.   CFLAGS=" "
  416. fi
  417. # Extract the first word of "gcc", so it can be a program name with args.
  418. set dummy gcc; ac_word=$2
  419. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  420. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  421.   echo $ac_n "(cached) $ac_c" 1>&6
  422. else
  423.   if test -n "$CC"; then
  424.   ac_cv_prog_CC="$CC" # Let the user override the test.
  425. else
  426.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  427.   for ac_dir in $PATH; do
  428.     test -z "$ac_dir" && ac_dir=.
  429.     if test -f $ac_dir/$ac_word; then
  430.       ac_cv_prog_CC="gcc"
  431.       break
  432.     fi
  433.   done
  434.   IFS="$ac_save_ifs"
  435.   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  436. fi
  437. fi
  438. CC="$ac_cv_prog_CC"
  439. if test -n "$CC"; then
  440.   echo "$ac_t""$CC" 1>&6
  441. else
  442.   echo "$ac_t""no" 1>&6
  443. fi
  444.  
  445.  
  446. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  447. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  448.   echo $ac_n "(cached) $ac_c" 1>&6
  449. else
  450.   cat > conftest.c <<EOF
  451. #ifdef __GNUC__
  452.   yes;
  453. #endif
  454. EOF
  455. if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  456.   ac_cv_prog_gcc=yes
  457. else
  458.   ac_cv_prog_gcc=no
  459. fi
  460. fi
  461. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  462. if test $ac_cv_prog_gcc = yes; then
  463.   GCC=yes
  464.   if test "${CFLAGS+set}" != set; then
  465.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  466. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  467.   echo $ac_n "(cached) $ac_c" 1>&6
  468. else
  469.   echo 'void f(){}' > conftest.c
  470. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  471.   ac_cv_prog_gcc_g=yes
  472. else
  473.   ac_cv_prog_gcc_g=no
  474. fi
  475. rm -f conftest*
  476.  
  477. fi
  478.     echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  479.     if test $ac_cv_prog_gcc_g = yes; then
  480.       CFLAGS="-g -O"
  481.     else
  482.       CFLAGS="-O"
  483.     fi
  484.   fi
  485. else
  486.   GCC=
  487.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  488. fi
  489.  
  490. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  491. if test -d /etc/conf/kconfig.d &&
  492.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  493. then
  494.   echo "$ac_t""yes" 1>&6
  495.   ISC=yes # If later tests want to check for ISC.
  496.   cat >> confdefs.h <<\EOF
  497. #define _POSIX_SOURCE 1
  498. EOF
  499.  
  500.   if test "$GCC" = yes; then
  501.     CC="$CC -posix"
  502.   else
  503.     CC="$CC -Xp"
  504.   fi
  505. else
  506.   echo "$ac_t""no" 1>&6
  507.   ISC=
  508. fi
  509.  
  510. ac_aux_dir=
  511. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  512.   if test -f $ac_dir/install-sh; then
  513.     ac_aux_dir=$ac_dir
  514.     ac_install_sh="$ac_aux_dir/install-sh -c"
  515.     break
  516.   elif test -f $ac_dir/install.sh; then
  517.     ac_aux_dir=$ac_dir
  518.     ac_install_sh="$ac_aux_dir/install.sh -c"
  519.     break
  520.   fi
  521. done
  522. if test -z "$ac_aux_dir"; then
  523.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  524. fi
  525. ac_config_guess=$ac_aux_dir/config.guess
  526. ac_config_sub=$ac_aux_dir/config.sub
  527. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  528.  
  529. # Find a good install program.  We prefer a C program (faster),
  530. # so one script is as good as another.  But avoid the broken or
  531. # incompatible versions:
  532. # SysV /etc/install, /usr/sbin/install
  533. # SunOS /usr/etc/install
  534. # IRIX /sbin/install
  535. # AIX /bin/install
  536. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  537. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  538. # ./install, which can be erroneously created by make from ./install.sh.
  539. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  540. if test -z "$INSTALL"; then
  541. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  542.   echo $ac_n "(cached) $ac_c" 1>&6
  543. else
  544.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  545.   for ac_dir in $PATH; do
  546.     # Account for people who put trailing slashes in PATH elements.
  547.     case "$ac_dir/" in
  548.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  549.     *)
  550.       # OSF1 and SCO ODT 3.0 have their own names for install.
  551.       for ac_prog in ginstall installbsd scoinst install; do
  552.         if test -f $ac_dir/$ac_prog; then
  553.       if test $ac_prog = install &&
  554.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  555.         # AIX install.  It has an incompatible calling convention.
  556.         # OSF/1 installbsd also uses dspmsg, but is usable.
  557.         :
  558.       else
  559.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  560.         break 2
  561.       fi
  562.     fi
  563.       done
  564.       ;;
  565.     esac
  566.   done
  567.   IFS="$ac_save_ifs"
  568.   # As a last resort, use the slow shell script.
  569.   test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  570. fi
  571.   INSTALL="$ac_cv_path_install"
  572. fi
  573. echo "$ac_t""$INSTALL" 1>&6
  574.  
  575. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  576. # It thinks the first close brace ends the variable substitution.
  577. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  578.  
  579. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  580.  
  581. for ac_prog in lex flex
  582. do
  583. # Extract the first word of "$ac_prog", so it can be a program name with args.
  584. set dummy $ac_prog; ac_word=$2
  585. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  586. if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
  587.   echo $ac_n "(cached) $ac_c" 1>&6
  588. else
  589.   if test -n "$LEX"; then
  590.   ac_cv_prog_LEX="$LEX" # Let the user override the test.
  591. else
  592.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  593.   for ac_dir in $PATH; do
  594.     test -z "$ac_dir" && ac_dir=.
  595.     if test -f $ac_dir/$ac_word; then
  596.       ac_cv_prog_LEX="$ac_prog"
  597.       break
  598.     fi
  599.   done
  600.   IFS="$ac_save_ifs"
  601. fi
  602. fi
  603. LEX="$ac_cv_prog_LEX"
  604. if test -n "$LEX"; then
  605.   echo "$ac_t""$LEX" 1>&6
  606. else
  607.   echo "$ac_t""no" 1>&6
  608. fi
  609.  
  610. test -n "$LEX" && break
  611. done
  612. test -n "$LEX" || LEX="lex"
  613.  
  614. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  615. # On Suns, sometimes $CPP names a directory.
  616. if test -n "$CPP" && test -d "$CPP"; then
  617.   CPP=
  618. fi
  619. if test -z "$CPP"; then
  620. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  621.   echo $ac_n "(cached) $ac_c" 1>&6
  622. else
  623.     # This must be in double quotes, not single quotes, because CPP may get
  624.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  625.   CPP="${CC-cc} -E"
  626.   # On the NeXT, cc -E runs the code through the compiler's parser,
  627.   # not just through cpp.
  628.   cat > conftest.$ac_ext <<EOF
  629. #line 630 "configure"
  630. #include "confdefs.h"
  631. #include <assert.h>
  632. Syntax Error
  633. EOF
  634. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  635. ac_err=`grep -v '^ *+' conftest.out`
  636. if test -z "$ac_err"; then
  637.   :
  638. else
  639.   echo "$ac_err" >&5
  640.   rm -rf conftest*
  641.   CPP="${CC-cc} -E -traditional-cpp"
  642.   cat > conftest.$ac_ext <<EOF
  643. #line 644 "configure"
  644. #include "confdefs.h"
  645. #include <assert.h>
  646. Syntax Error
  647. EOF
  648. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  649. ac_err=`grep -v '^ *+' conftest.out`
  650. if test -z "$ac_err"; then
  651.   :
  652. else
  653.   echo "$ac_err" >&5
  654.   rm -rf conftest*
  655.   CPP=/lib/cpp
  656. fi
  657. rm -f conftest*
  658. fi
  659. rm -f conftest*
  660.   ac_cv_prog_CPP="$CPP"
  661. fi
  662. fi
  663. CPP="$ac_cv_prog_CPP"
  664. echo "$ac_t""$CPP" 1>&6
  665.  
  666. # Extract the first word of "flex", so it can be a program name with args.
  667. set dummy flex; ac_word=$2
  668. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  669. if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
  670.   echo $ac_n "(cached) $ac_c" 1>&6
  671. else
  672.   if test -n "$LEX"; then
  673.   ac_cv_prog_LEX="$LEX" # Let the user override the test.
  674. else
  675.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  676.   for ac_dir in $PATH; do
  677.     test -z "$ac_dir" && ac_dir=.
  678.     if test -f $ac_dir/$ac_word; then
  679.       ac_cv_prog_LEX="flex"
  680.       break
  681.     fi
  682.   done
  683.   IFS="$ac_save_ifs"
  684.   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
  685. fi
  686. fi
  687. LEX="$ac_cv_prog_LEX"
  688. if test -n "$LEX"; then
  689.   echo "$ac_t""$LEX" 1>&6
  690. else
  691.   echo "$ac_t""no" 1>&6
  692. fi
  693.  
  694. if test -z "$LEXLIB"
  695. then
  696.   case "$LEX" in
  697.   flex*) ac_lib=fl ;;
  698.   *) ac_lib=l ;;
  699.   esac
  700.   echo $ac_n "checking for -l$ac_lib""... $ac_c" 1>&6
  701. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib'+set}'`\" = set"; then
  702.   echo $ac_n "(cached) $ac_c" 1>&6
  703. else
  704.   ac_save_LIBS="$LIBS"
  705. LIBS="-l$ac_lib  $LIBS"
  706. cat > conftest.$ac_ext <<EOF
  707. #line 708 "configure"
  708. #include "confdefs.h"
  709.  
  710. int main() { return 0; }
  711. int t() {
  712. yywrap()
  713. ; return 0; }
  714. EOF
  715. if eval $ac_link; then
  716.   rm -rf conftest*
  717.   eval "ac_cv_lib_$ac_lib=yes"
  718. else
  719.   rm -rf conftest*
  720.   eval "ac_cv_lib_$ac_lib=no"
  721. fi
  722. rm -f conftest*
  723. LIBS="$ac_save_LIBS"
  724.  
  725. fi
  726. if eval "test \"`echo '$ac_cv_lib_'$ac_lib`\" = yes"; then
  727.   echo "$ac_t""yes" 1>&6
  728.   LEXLIB="-l$ac_lib"
  729. else
  730.   echo "$ac_t""no" 1>&6
  731. fi
  732.  
  733. fi
  734.  
  735. echo $ac_n "checking lex output file root""... $ac_c" 1>&6
  736. if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
  737.   echo $ac_n "(cached) $ac_c" 1>&6
  738. else
  739.   # The minimal lex program is just a single line: %%.  But some broken lexes
  740. # (Solaris, I think it was) want two %% lines, so accommodate them.
  741. echo '%%
  742. %%' | $LEX
  743. if test -f lex.yy.c; then
  744.   ac_cv_prog_lex_root=lex.yy
  745. elif test -f lexyy.c; then
  746.   ac_cv_prog_lex_root=lexyy
  747. else
  748.   { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
  749. fi
  750. fi
  751. LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
  752. echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
  753.  
  754. echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
  755. if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
  756.   echo $ac_n "(cached) $ac_c" 1>&6
  757. else
  758.   # POSIX says lex can declare yytext either as a pointer or an array; the
  759. # default is implementation-dependent. Figure out which it is, since
  760. # not all implementations provide the %pointer and %array declarations.
  761. ac_cv_prog_lex_yytext_pointer=no
  762. echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
  763. ac_save_LIBS="$LIBS"
  764. LIBS="$LIBS $LEXLIB"
  765. cat > conftest.$ac_ext <<EOF
  766. #line 767 "configure"
  767. #include "confdefs.h"
  768. `cat $LEX_OUTPUT_ROOT.c`
  769. int main() { return 0; }
  770. int t() {
  771.  
  772. ; return 0; }
  773. EOF
  774. if eval $ac_link; then
  775.   rm -rf conftest*
  776.   ac_cv_prog_lex_yytext_pointer=yes
  777. fi
  778. rm -f conftest*
  779.  
  780. LIBS="$ac_save_LIBS"
  781. rm -f "${LEX_OUTPUT_ROOT}.c"
  782. fi
  783. echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
  784. if test $ac_cv_prog_lex_yytext_pointer = yes; then
  785.   cat >> confdefs.h <<\EOF
  786. #define YYTEXT_POINTER 1
  787. EOF
  788.  
  789. fi
  790.  
  791. for ac_prog in remsh rsh
  792. do
  793. # Extract the first word of "$ac_prog", so it can be a program name with args.
  794. set dummy $ac_prog; ac_word=$2
  795. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  796. if eval "test \"`echo '$''{'ac_cv_prog_RSH'+set}'`\" = set"; then
  797.   echo $ac_n "(cached) $ac_c" 1>&6
  798. else
  799.   if test -n "$RSH"; then
  800.   ac_cv_prog_RSH="$RSH" # Let the user override the test.
  801. else
  802.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  803.   for ac_dir in $PATH; do
  804.     test -z "$ac_dir" && ac_dir=.
  805.     if test -f $ac_dir/$ac_word; then
  806.       ac_cv_prog_RSH="$ac_prog"
  807.       break
  808.     fi
  809.   done
  810.   IFS="$ac_save_ifs"
  811. fi
  812. fi
  813. RSH="$ac_cv_prog_RSH"
  814. if test -n "$RSH"; then
  815.   echo "$ac_t""$RSH" 1>&6
  816. else
  817.   echo "$ac_t""no" 1>&6
  818. fi
  819.  
  820. test -n "$RSH" && break
  821. done
  822. test -n "$RSH" || RSH="rsh"
  823.  
  824. cat >> confdefs.h <<EOF
  825. #define REMOTE_SHELL "$RSH"
  826. EOF
  827.  
  828. # Extract the first word of "nroff", so it can be a program name with args.
  829. set dummy nroff; ac_word=$2
  830. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  831. if eval "test \"`echo '$''{'ac_cv_prog_NROFF'+set}'`\" = set"; then
  832.   echo $ac_n "(cached) $ac_c" 1>&6
  833. else
  834.   if test -n "$NROFF"; then
  835.   ac_cv_prog_NROFF="$NROFF" # Let the user override the test.
  836. else
  837.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  838.   for ac_dir in $PATH; do
  839.     test -z "$ac_dir" && ac_dir=.
  840.     if test -f $ac_dir/$ac_word; then
  841.       ac_cv_prog_NROFF="nroff -man"
  842.       break
  843.     fi
  844.   done
  845.   IFS="$ac_save_ifs"
  846.   test -z "$ac_cv_prog_NROFF" && ac_cv_prog_NROFF="cat"
  847. fi
  848. fi
  849. NROFF="$ac_cv_prog_NROFF"
  850. if test -n "$NROFF"; then
  851.   echo "$ac_t""$NROFF" 1>&6
  852. else
  853.   echo "$ac_t""no" 1>&6
  854. fi
  855.  
  856.  
  857. for ac_prog in awk mawk gawk nawk
  858. do
  859. # Extract the first word of "$ac_prog", so it can be a program name with args.
  860. set dummy $ac_prog; ac_word=$2
  861. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  862. if eval "test \"`echo '$''{'ac_cv_path_AWKPATH'+set}'`\" = set"; then
  863.   echo $ac_n "(cached) $ac_c" 1>&6
  864. else
  865.   case "$AWKPATH" in
  866.   /*)
  867.   ac_cv_path_AWKPATH="$AWKPATH" # Let the user override the test with a path.
  868.   ;;
  869.   *)
  870.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  871.   for ac_dir in $PATH; do
  872.     test -z "$ac_dir" && ac_dir=.
  873.     if test -f $ac_dir/$ac_word; then
  874.       ac_cv_path_AWKPATH="$ac_dir/$ac_word"
  875.       break
  876.     fi
  877.   done
  878.   IFS="$ac_save_ifs"
  879.   ;;
  880. esac
  881. fi
  882. AWKPATH="$ac_cv_path_AWKPATH"
  883. if test -n "$AWKPATH"; then
  884.   echo "$ac_t""$AWKPATH" 1>&6
  885. else
  886.   echo "$ac_t""no" 1>&6
  887. fi
  888.  
  889. test -n "$AWKPATH" && break
  890. done
  891.  
  892. for ac_prog in perl
  893. do
  894. # Extract the first word of "$ac_prog", so it can be a program name with args.
  895. set dummy $ac_prog; ac_word=$2
  896. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  897. if eval "test \"`echo '$''{'ac_cv_path_PERLPATH'+set}'`\" = set"; then
  898.   echo $ac_n "(cached) $ac_c" 1>&6
  899. else
  900.   case "$PERLPATH" in
  901.   /*)
  902.   ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
  903.   ;;
  904.   *)
  905.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  906.   for ac_dir in $PATH; do
  907.     test -z "$ac_dir" && ac_dir=.
  908.     if test -f $ac_dir/$ac_word; then
  909.       ac_cv_path_PERLPATH="$ac_dir/$ac_word"
  910.       break
  911.     fi
  912.   done
  913.   IFS="$ac_save_ifs"
  914.   ;;
  915. esac
  916. fi
  917. PERLPATH="$ac_cv_path_PERLPATH"
  918. if test -n "$PERLPATH"; then
  919.   echo "$ac_t""$PERLPATH" 1>&6
  920. else
  921.   echo "$ac_t""no" 1>&6
  922. fi
  923.  
  924. test -n "$PERLPATH" && break
  925. done
  926.  
  927.  
  928. # If we cannot run a trivial program, we must be cross compiling.
  929. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  930. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  931.   echo $ac_n "(cached) $ac_c" 1>&6
  932. else
  933.   if test "$cross_compiling" = yes; then
  934.   ac_cv_c_cross=yes
  935. else
  936. cat > conftest.$ac_ext <<EOF
  937. #line 938 "configure"
  938. #include "confdefs.h"
  939. main(){return(0);}
  940. EOF
  941. eval $ac_link
  942. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  943.   ac_cv_c_cross=no
  944. else
  945.   ac_cv_c_cross=yes
  946. fi
  947. fi
  948. rm -fr conftest*
  949. fi
  950. cross_compiling=$ac_cv_c_cross
  951. echo "$ac_t""$ac_cv_c_cross" 1>&6
  952.  
  953. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  954. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  955.   echo $ac_n "(cached) $ac_c" 1>&6
  956. else
  957.   cat > conftest.$ac_ext <<EOF
  958. #line 959 "configure"
  959. #include "confdefs.h"
  960. #include <stdlib.h>
  961. #include <stdarg.h>
  962. #include <string.h>
  963. #include <float.h>
  964. EOF
  965. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  966. ac_err=`grep -v '^ *+' conftest.out`
  967. if test -z "$ac_err"; then
  968.   rm -rf conftest*
  969.   ac_cv_header_stdc=yes
  970. else
  971.   echo "$ac_err" >&5
  972.   rm -rf conftest*
  973.   ac_cv_header_stdc=no
  974. fi
  975. rm -f conftest*
  976.  
  977. if test $ac_cv_header_stdc = yes; then
  978.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  979. cat > conftest.$ac_ext <<EOF
  980. #line 981 "configure"
  981. #include "confdefs.h"
  982. #include <string.h>
  983. EOF
  984. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  985.   egrep "memchr" >/dev/null 2>&1; then
  986.   :
  987. else
  988.   rm -rf conftest*
  989.   ac_cv_header_stdc=no
  990. fi
  991. rm -f conftest*
  992.  
  993. fi
  994.  
  995. if test $ac_cv_header_stdc = yes; then
  996.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  997. cat > conftest.$ac_ext <<EOF
  998. #line 999 "configure"
  999. #include "confdefs.h"
  1000. #include <stdlib.h>
  1001. EOF
  1002. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1003.   egrep "free" >/dev/null 2>&1; then
  1004.   :
  1005. else
  1006.   rm -rf conftest*
  1007.   ac_cv_header_stdc=no
  1008. fi
  1009. rm -f conftest*
  1010.  
  1011. fi
  1012.  
  1013. if test $ac_cv_header_stdc = yes; then
  1014.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1015. if test "$cross_compiling" = yes; then
  1016.   ac_cv_header_stdc=no
  1017. else
  1018. cat > conftest.$ac_ext <<EOF
  1019. #line 1020 "configure"
  1020. #include "confdefs.h"
  1021. #include <ctype.h>
  1022. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1023. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1024. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1025. int main () { int i; for (i = 0; i < 256; i++)
  1026. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1027. exit (0); }
  1028.  
  1029. EOF
  1030. eval $ac_link
  1031. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1032.   :
  1033. else
  1034.   ac_cv_header_stdc=no
  1035. fi
  1036. fi
  1037. rm -fr conftest*
  1038. fi
  1039. fi
  1040. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1041. if test $ac_cv_header_stdc = yes; then
  1042.   cat >> confdefs.h <<\EOF
  1043. #define STDC_HEADERS 1
  1044. EOF
  1045.  
  1046. fi
  1047.  
  1048. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  1049. if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  1050.   echo $ac_n "(cached) $ac_c" 1>&6
  1051. else
  1052.   cat > conftest.$ac_ext <<EOF
  1053. #line 1054 "configure"
  1054. #include "confdefs.h"
  1055. #include <sys/types.h>
  1056. #include <sys/time.h>
  1057. #include <time.h>
  1058. int main() { return 0; }
  1059. int t() {
  1060. struct tm *tp;
  1061. ; return 0; }
  1062. EOF
  1063. if eval $ac_compile; then
  1064.   rm -rf conftest*
  1065.   ac_cv_header_time=yes
  1066. else
  1067.   rm -rf conftest*
  1068.   ac_cv_header_time=no
  1069. fi
  1070. rm -f conftest*
  1071.  
  1072. fi
  1073. echo "$ac_t""$ac_cv_header_time" 1>&6
  1074. if test $ac_cv_header_time = yes; then
  1075.   cat >> confdefs.h <<\EOF
  1076. #define TIME_WITH_SYS_TIME 1
  1077. EOF
  1078.  
  1079. fi
  1080.  
  1081. echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
  1082. if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  1083.   echo $ac_n "(cached) $ac_c" 1>&6
  1084. else
  1085.   cat > conftest.$ac_ext <<EOF
  1086. #line 1087 "configure"
  1087. #include "confdefs.h"
  1088. #include <sys/types.h>
  1089. #include <sys/wait.h>
  1090. #ifndef WEXITSTATUS
  1091. #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  1092. #endif
  1093. #ifndef WIFEXITED
  1094. #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  1095. #endif
  1096. int main() { return 0; }
  1097. int t() {
  1098. int s;
  1099. wait (&s);
  1100. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  1101. ; return 0; }
  1102. EOF
  1103. if eval $ac_compile; then
  1104.   rm -rf conftest*
  1105.   ac_cv_header_sys_wait_h=yes
  1106. else
  1107.   rm -rf conftest*
  1108.   ac_cv_header_sys_wait_h=no
  1109. fi
  1110. rm -f conftest*
  1111.  
  1112. fi
  1113. echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
  1114. if test $ac_cv_header_sys_wait_h = yes; then
  1115.   cat >> confdefs.h <<\EOF
  1116. #define HAVE_SYS_WAIT_H 1
  1117. EOF
  1118.  
  1119. fi
  1120.  
  1121. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  1122. if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  1123.   echo $ac_n "(cached) $ac_c" 1>&6
  1124. else
  1125.   cat > conftest.$ac_ext <<EOF
  1126. #line 1127 "configure"
  1127. #include "confdefs.h"
  1128. #include <sys/types.h>
  1129. #include <signal.h>
  1130. #ifdef signal
  1131. #undef signal
  1132. #endif
  1133. #ifdef __cplusplus
  1134. extern "C"
  1135. #endif
  1136. void (*signal ()) ();
  1137. int main() { return 0; }
  1138. int t() {
  1139. int i;
  1140. ; return 0; }
  1141. EOF
  1142. if eval $ac_compile; then
  1143.   rm -rf conftest*
  1144.   ac_cv_type_signal=void
  1145. else
  1146.   rm -rf conftest*
  1147.   ac_cv_type_signal=int
  1148. fi
  1149. rm -f conftest*
  1150.  
  1151. fi
  1152. echo "$ac_t""$ac_cv_type_signal" 1>&6
  1153. cat >> confdefs.h <<EOF
  1154. #define RETSIGTYPE $ac_cv_type_signal
  1155. EOF
  1156.  
  1157.  
  1158. for ac_hdr in stropts.h sys/time.h string.h unistd.h sys/systeminfo.h
  1159. do
  1160. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1161. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1162. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1163.   echo $ac_n "(cached) $ac_c" 1>&6
  1164. else
  1165.   cat > conftest.$ac_ext <<EOF
  1166. #line 1167 "configure"
  1167. #include "confdefs.h"
  1168. #include <$ac_hdr>
  1169. EOF
  1170. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1171. ac_err=`grep -v '^ *+' conftest.out`
  1172. if test -z "$ac_err"; then
  1173.   rm -rf conftest*
  1174.   eval "ac_cv_header_$ac_safe=yes"
  1175. else
  1176.   echo "$ac_err" >&5
  1177.   rm -rf conftest*
  1178.   eval "ac_cv_header_$ac_safe=no"
  1179. fi
  1180. rm -f conftest*
  1181. fi
  1182. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1183.   echo "$ac_t""yes" 1>&6
  1184.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  1185.   cat >> confdefs.h <<EOF
  1186. #define $ac_tr_hdr 1
  1187. EOF
  1188.  
  1189. else
  1190.   echo "$ac_t""no" 1>&6
  1191. fi
  1192. done
  1193.  
  1194. ac_safe=`echo "fcntl.h" | tr './\055' '___'`
  1195. echo $ac_n "checking for fcntl.h""... $ac_c" 1>&6
  1196. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1197.   echo $ac_n "(cached) $ac_c" 1>&6
  1198. else
  1199.   cat > conftest.$ac_ext <<EOF
  1200. #line 1201 "configure"
  1201. #include "confdefs.h"
  1202. #include <fcntl.h>
  1203. EOF
  1204. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1205. ac_err=`grep -v '^ *+' conftest.out`
  1206. if test -z "$ac_err"; then
  1207.   rm -rf conftest*
  1208.   eval "ac_cv_header_$ac_safe=yes"
  1209. else
  1210.   echo "$ac_err" >&5
  1211.   rm -rf conftest*
  1212.   eval "ac_cv_header_$ac_safe=no"
  1213. fi
  1214. rm -f conftest*
  1215. fi
  1216. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1217.   echo "$ac_t""yes" 1>&6
  1218.   cat >> confdefs.h <<\EOF
  1219. #define HAVE_FCNTL_H 1
  1220. EOF
  1221.  
  1222. else
  1223.   echo "$ac_t""no" 1>&6
  1224. for ac_hdr in sys/fcntl.h
  1225. do
  1226. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1227. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1228. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1229.   echo $ac_n "(cached) $ac_c" 1>&6
  1230. else
  1231.   cat > conftest.$ac_ext <<EOF
  1232. #line 1233 "configure"
  1233. #include "confdefs.h"
  1234. #include <$ac_hdr>
  1235. EOF
  1236. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1237. ac_err=`grep -v '^ *+' conftest.out`
  1238. if test -z "$ac_err"; then
  1239.   rm -rf conftest*
  1240.   eval "ac_cv_header_$ac_safe=yes"
  1241. else
  1242.   echo "$ac_err" >&5
  1243.   rm -rf conftest*
  1244.   eval "ac_cv_header_$ac_safe=no"
  1245. fi
  1246. rm -f conftest*
  1247. fi
  1248. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1249.   echo "$ac_t""yes" 1>&6
  1250.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'a-z./\055' 'A-Z___'`
  1251.   cat >> confdefs.h <<EOF
  1252. #define $ac_tr_hdr 1
  1253. EOF
  1254.  
  1255. else
  1256.   echo "$ac_t""no" 1>&6
  1257. fi
  1258. done
  1259.  
  1260. fi
  1261.  
  1262. ac_safe=`echo "sys/socket.h" | tr './\055' '___'`
  1263. echo $ac_n "checking for sys/socket.h""... $ac_c" 1>&6
  1264. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1265.   echo $ac_n "(cached) $ac_c" 1>&6
  1266. else
  1267.   cat > conftest.$ac_ext <<EOF
  1268. #line 1269 "configure"
  1269. #include "confdefs.h"
  1270. #include <sys/socket.h>
  1271. EOF
  1272. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1273. ac_err=`grep -v '^ *+' conftest.out`
  1274. if test -z "$ac_err"; then
  1275.   rm -rf conftest*
  1276.   eval "ac_cv_header_$ac_safe=yes"
  1277. else
  1278.   echo "$ac_err" >&5
  1279.   rm -rf conftest*
  1280.   eval "ac_cv_header_$ac_safe=no"
  1281. fi
  1282. rm -f conftest*
  1283. fi
  1284. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1285.   echo "$ac_t""yes" 1>&6
  1286.   cat >> confdefs.h <<\EOF
  1287. #define HAVE_SYS_SOCKET_H 1
  1288. EOF
  1289.  
  1290. else
  1291.   echo "$ac_t""no" 1>&6
  1292. for ac_hdr in lan/socket.h
  1293. do
  1294. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1295. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1296. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1297.   echo $ac_n "(cached) $ac_c" 1>&6
  1298. else
  1299.   cat > conftest.$ac_ext <<EOF
  1300. #line 1301 "configure"
  1301. #include "confdefs.h"
  1302. #include <$ac_hdr>
  1303. EOF
  1304. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1305. ac_err=`grep -v '^ *+' conftest.out`
  1306. if test -z "$ac_err"; then
  1307.   rm -rf conftest*
  1308.   eval "ac_cv_header_$ac_safe=yes"
  1309. else
  1310.   echo "$ac_err" >&5
  1311.   rm -rf conftest*
  1312.   eval "ac_cv_header_$ac_safe=no"
  1313. fi
  1314. rm -f conftest*
  1315. fi
  1316. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1317.   echo "$ac_t""yes" 1>&6
  1318.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'a-z./\055' 'A-Z___'`
  1319.   cat >> confdefs.h <<EOF
  1320. #define $ac_tr_hdr 1
  1321. EOF
  1322.  
  1323. else
  1324.   echo "$ac_t""no" 1>&6
  1325. fi
  1326. done
  1327.  
  1328. fi
  1329.  
  1330. ac_safe=`echo "stddef.h" | tr './\055' '___'`
  1331. echo $ac_n "checking for stddef.h""... $ac_c" 1>&6
  1332. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1333.   echo $ac_n "(cached) $ac_c" 1>&6
  1334. else
  1335.   cat > conftest.$ac_ext <<EOF
  1336. #line 1337 "configure"
  1337. #include "confdefs.h"
  1338. #include <stddef.h>
  1339. EOF
  1340. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1341. ac_err=`grep -v '^ *+' conftest.out`
  1342. if test -z "$ac_err"; then
  1343.   rm -rf conftest*
  1344.   eval "ac_cv_header_$ac_safe=yes"
  1345. else
  1346.   echo "$ac_err" >&5
  1347.   rm -rf conftest*
  1348.   eval "ac_cv_header_$ac_safe=no"
  1349. fi
  1350. rm -f conftest*
  1351. fi
  1352. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1353.   echo "$ac_t""yes" 1>&6
  1354.   :
  1355. else
  1356.   echo "$ac_t""no" 1>&6
  1357. cat >> confdefs.h <<\EOF
  1358. #define X_WCHAR 1
  1359. EOF
  1360.  
  1361. fi
  1362.  
  1363.  
  1364. for ac_func in _getpty grantpt
  1365. do
  1366. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1367. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1368.   echo $ac_n "(cached) $ac_c" 1>&6
  1369. else
  1370.   cat > conftest.$ac_ext <<EOF
  1371. #line 1372 "configure"
  1372. #include "confdefs.h"
  1373. /* System header to define __stub macros and hopefully few prototypes,
  1374.     which can conflict with char $ac_func(); below.  */
  1375. #include <assert.h>
  1376. /* Override any gcc2 internal prototype to avoid an error.  */
  1377. char $ac_func(); 
  1378.  
  1379. int main() { return 0; }
  1380. int t() {
  1381.  
  1382. /* The GNU C library defines this for functions which it implements
  1383.     to always fail with ENOSYS.  Some functions are actually named
  1384.     something starting with __ and the normal name is an alias.  */
  1385. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1386. choke me
  1387. #else
  1388. $ac_func();
  1389. #endif
  1390.  
  1391. ; return 0; }
  1392. EOF
  1393. if eval $ac_link; then
  1394.   rm -rf conftest*
  1395.   eval "ac_cv_func_$ac_func=yes"
  1396. else
  1397.   rm -rf conftest*
  1398.   eval "ac_cv_func_$ac_func=no"
  1399. fi
  1400. rm -f conftest*
  1401.  
  1402. fi
  1403. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1404.   echo "$ac_t""yes" 1>&6
  1405.     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  1406.   cat >> confdefs.h <<EOF
  1407. #define $ac_tr_func 1
  1408. EOF
  1409.  
  1410. else
  1411.   echo "$ac_t""no" 1>&6
  1412. fi
  1413. done
  1414.  
  1415. echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
  1416. if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
  1417.   echo $ac_n "(cached) $ac_c" 1>&6
  1418. else
  1419.   cat > conftest.$ac_ext <<EOF
  1420. #line 1421 "configure"
  1421. #include "confdefs.h"
  1422. /* System header to define __stub macros and hopefully few prototypes,
  1423.     which can conflict with char gettimeofday(); below.  */
  1424. #include <assert.h>
  1425. /* Override any gcc2 internal prototype to avoid an error.  */
  1426. char gettimeofday(); 
  1427.  
  1428. int main() { return 0; }
  1429. int t() {
  1430.  
  1431. /* The GNU C library defines this for functions which it implements
  1432.     to always fail with ENOSYS.  Some functions are actually named
  1433.     something starting with __ and the normal name is an alias.  */
  1434. #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
  1435. choke me
  1436. #else
  1437. gettimeofday();
  1438. #endif
  1439.  
  1440. ; return 0; }
  1441. EOF
  1442. if eval $ac_link; then
  1443.   rm -rf conftest*
  1444.   eval "ac_cv_func_gettimeofday=yes"
  1445. else
  1446.   rm -rf conftest*
  1447.   eval "ac_cv_func_gettimeofday=no"
  1448. fi
  1449. rm -f conftest*
  1450.  
  1451. fi
  1452. if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then
  1453.   echo "$ac_t""yes" 1>&6
  1454.   cat >> confdefs.h <<\EOF
  1455. #define HAVE_GETTIMEOFDAY 1
  1456. EOF
  1457.  
  1458. else
  1459.   echo "$ac_t""no" 1>&6
  1460. for ac_func in ftime
  1461. do
  1462. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1463. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1464.   echo $ac_n "(cached) $ac_c" 1>&6
  1465. else
  1466.   cat > conftest.$ac_ext <<EOF
  1467. #line 1468 "configure"
  1468. #include "confdefs.h"
  1469. /* System header to define __stub macros and hopefully few prototypes,
  1470.     which can conflict with char $ac_func(); below.  */
  1471. #include <assert.h>
  1472. /* Override any gcc2 internal prototype to avoid an error.  */
  1473. char $ac_func(); 
  1474.  
  1475. int main() { return 0; }
  1476. int t() {
  1477.  
  1478. /* The GNU C library defines this for functions which it implements
  1479.     to always fail with ENOSYS.  Some functions are actually named
  1480.     something starting with __ and the normal name is an alias.  */
  1481. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1482. choke me
  1483. #else
  1484. $ac_func();
  1485. #endif
  1486.  
  1487. ; return 0; }
  1488. EOF
  1489. if eval $ac_link; then
  1490.   rm -rf conftest*
  1491.   eval "ac_cv_func_$ac_func=yes"
  1492. else
  1493.   rm -rf conftest*
  1494.   eval "ac_cv_func_$ac_func=no"
  1495. fi
  1496. rm -f conftest*
  1497.  
  1498. fi
  1499. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1500.   echo "$ac_t""yes" 1>&6
  1501.     ac_tr_func=HAVE_`echo $ac_func | tr 'a-z' 'A-Z'`
  1502.   cat >> confdefs.h <<EOF
  1503. #define $ac_tr_func 1
  1504. EOF
  1505.  
  1506. else
  1507.   echo "$ac_t""no" 1>&6
  1508. fi
  1509. done
  1510.  
  1511. fi
  1512.  
  1513. echo $ac_n "checking for random""... $ac_c" 1>&6
  1514. if eval "test \"`echo '$''{'ac_cv_func_random'+set}'`\" = set"; then
  1515.   echo $ac_n "(cached) $ac_c" 1>&6
  1516. else
  1517.   cat > conftest.$ac_ext <<EOF
  1518. #line 1519 "configure"
  1519. #include "confdefs.h"
  1520. /* System header to define __stub macros and hopefully few prototypes,
  1521.     which can conflict with char random(); below.  */
  1522. #include <assert.h>
  1523. /* Override any gcc2 internal prototype to avoid an error.  */
  1524. char random(); 
  1525.  
  1526. int main() { return 0; }
  1527. int t() {
  1528.  
  1529. /* The GNU C library defines this for functions which it implements
  1530.     to always fail with ENOSYS.  Some functions are actually named
  1531.     something starting with __ and the normal name is an alias.  */
  1532. #if defined (__stub_random) || defined (__stub___random)
  1533. choke me
  1534. #else
  1535. random();
  1536. #endif
  1537.  
  1538. ; return 0; }
  1539. EOF
  1540. if eval $ac_link; then
  1541.   rm -rf conftest*
  1542.   eval "ac_cv_func_random=yes"
  1543. else
  1544.   rm -rf conftest*
  1545.   eval "ac_cv_func_random=no"
  1546. fi
  1547. rm -f conftest*
  1548.  
  1549. fi
  1550. if eval "test \"`echo '$ac_cv_func_'random`\" = yes"; then
  1551.   echo "$ac_t""yes" 1>&6
  1552.   cat >> confdefs.h <<\EOF
  1553. #define HAVE_RANDOM 1
  1554. EOF
  1555.  
  1556. else
  1557.   echo "$ac_t""no" 1>&6
  1558. for ac_func in rand48
  1559. do
  1560. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1561. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1562.   echo $ac_n "(cached) $ac_c" 1>&6
  1563. else
  1564.   cat > conftest.$ac_ext <<EOF
  1565. #line 1566 "configure"
  1566. #include "confdefs.h"
  1567. /* System header to define __stub macros and hopefully few prototypes,
  1568.     which can conflict with char $ac_func(); below.  */
  1569. #include <assert.h>
  1570. /* Override any gcc2 internal prototype to avoid an error.  */
  1571. char $ac_func(); 
  1572.  
  1573. int main() { return 0; }
  1574. int t() {
  1575.  
  1576. /* The GNU C library defines this for functions which it implements
  1577.     to always fail with ENOSYS.  Some functions are actually named
  1578.     something starting with __ and the normal name is an alias.  */
  1579. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1580. choke me
  1581. #else
  1582. $ac_func();
  1583. #endif
  1584.  
  1585. ; return 0; }
  1586. EOF
  1587. if eval $ac_link; then
  1588.   rm -rf conftest*
  1589.   eval "ac_cv_func_$ac_func=yes"
  1590. else
  1591.   rm -rf conftest*
  1592.   eval "ac_cv_func_$ac_func=no"
  1593. fi
  1594. rm -f conftest*
  1595.  
  1596. fi
  1597. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1598.   echo "$ac_t""yes" 1>&6
  1599.     ac_tr_func=HAVE_`echo $ac_func | tr 'a-z' 'A-Z'`
  1600.   cat >> confdefs.h <<EOF
  1601. #define $ac_tr_func 1
  1602. EOF
  1603.  
  1604. else
  1605.   echo "$ac_t""no" 1>&6
  1606. fi
  1607. done
  1608.  
  1609. fi
  1610.  
  1611. echo $ac_n "checking for gethostname""... $ac_c" 1>&6
  1612. if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
  1613.   echo $ac_n "(cached) $ac_c" 1>&6
  1614. else
  1615.   cat > conftest.$ac_ext <<EOF
  1616. #line 1617 "configure"
  1617. #include "confdefs.h"
  1618. /* System header to define __stub macros and hopefully few prototypes,
  1619.     which can conflict with char gethostname(); below.  */
  1620. #include <assert.h>
  1621. /* Override any gcc2 internal prototype to avoid an error.  */
  1622. char gethostname(); 
  1623.  
  1624. int main() { return 0; }
  1625. int t() {
  1626.  
  1627. /* The GNU C library defines this for functions which it implements
  1628.     to always fail with ENOSYS.  Some functions are actually named
  1629.     something starting with __ and the normal name is an alias.  */
  1630. #if defined (__stub_gethostname) || defined (__stub___gethostname)
  1631. choke me
  1632. #else
  1633. gethostname();
  1634. #endif
  1635.  
  1636. ; return 0; }
  1637. EOF
  1638. if eval $ac_link; then
  1639.   rm -rf conftest*
  1640.   eval "ac_cv_func_gethostname=yes"
  1641. else
  1642.   rm -rf conftest*
  1643.   eval "ac_cv_func_gethostname=no"
  1644. fi
  1645. rm -f conftest*
  1646.  
  1647. fi
  1648. if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
  1649.   echo "$ac_t""yes" 1>&6
  1650.   cat >> confdefs.h <<\EOF
  1651. #define HAVE_GETHOSTNAME 1
  1652. EOF
  1653.  
  1654. else
  1655.   echo "$ac_t""no" 1>&6
  1656. for ac_func in sysinfo
  1657. do
  1658. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1659. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1660.   echo $ac_n "(cached) $ac_c" 1>&6
  1661. else
  1662.   cat > conftest.$ac_ext <<EOF
  1663. #line 1664 "configure"
  1664. #include "confdefs.h"
  1665. /* System header to define __stub macros and hopefully few prototypes,
  1666.     which can conflict with char $ac_func(); below.  */
  1667. #include <assert.h>
  1668. /* Override any gcc2 internal prototype to avoid an error.  */
  1669. char $ac_func(); 
  1670.  
  1671. int main() { return 0; }
  1672. int t() {
  1673.  
  1674. /* The GNU C library defines this for functions which it implements
  1675.     to always fail with ENOSYS.  Some functions are actually named
  1676.     something starting with __ and the normal name is an alias.  */
  1677. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1678. choke me
  1679. #else
  1680. $ac_func();
  1681. #endif
  1682.  
  1683. ; return 0; }
  1684. EOF
  1685. if eval $ac_link; then
  1686.   rm -rf conftest*
  1687.   eval "ac_cv_func_$ac_func=yes"
  1688. else
  1689.   rm -rf conftest*
  1690.   eval "ac_cv_func_$ac_func=no"
  1691. fi
  1692. rm -f conftest*
  1693.  
  1694. fi
  1695. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1696.   echo "$ac_t""yes" 1>&6
  1697.     ac_tr_func=HAVE_`echo $ac_func | tr 'a-z' 'A-Z'`
  1698.   cat >> confdefs.h <<EOF
  1699. #define $ac_tr_func 1
  1700. EOF
  1701.  
  1702. else
  1703.   echo "$ac_t""no" 1>&6
  1704. fi
  1705. done
  1706.  
  1707. fi
  1708.  
  1709. echo $ac_n "checking for setlocale""... $ac_c" 1>&6
  1710. if eval "test \"`echo '$''{'ac_cv_func_setlocale'+set}'`\" = set"; then
  1711.   echo $ac_n "(cached) $ac_c" 1>&6
  1712. else
  1713.   cat > conftest.$ac_ext <<EOF
  1714. #line 1715 "configure"
  1715. #include "confdefs.h"
  1716. /* System header to define __stub macros and hopefully few prototypes,
  1717.     which can conflict with char setlocale(); below.  */
  1718. #include <assert.h>
  1719. /* Override any gcc2 internal prototype to avoid an error.  */
  1720. char setlocale(); 
  1721.  
  1722. int main() { return 0; }
  1723. int t() {
  1724.  
  1725. /* The GNU C library defines this for functions which it implements
  1726.     to always fail with ENOSYS.  Some functions are actually named
  1727.     something starting with __ and the normal name is an alias.  */
  1728. #if defined (__stub_setlocale) || defined (__stub___setlocale)
  1729. choke me
  1730. #else
  1731. setlocale();
  1732. #endif
  1733.  
  1734. ; return 0; }
  1735. EOF
  1736. if eval $ac_link; then
  1737.   rm -rf conftest*
  1738.   eval "ac_cv_func_setlocale=yes"
  1739. else
  1740.   rm -rf conftest*
  1741.   eval "ac_cv_func_setlocale=no"
  1742. fi
  1743. rm -f conftest*
  1744.  
  1745. fi
  1746. if eval "test \"`echo '$ac_cv_func_'setlocale`\" = yes"; then
  1747.   echo "$ac_t""yes" 1>&6
  1748.   :
  1749. else
  1750.   echo "$ac_t""no" 1>&6
  1751. echo $ac_n "checking for -li""... $ac_c" 1>&6
  1752. if eval "test \"`echo '$''{'ac_cv_lib_i'+set}'`\" = set"; then
  1753.   echo $ac_n "(cached) $ac_c" 1>&6
  1754. else
  1755.   ac_save_LIBS="$LIBS"
  1756. LIBS="-li  $LIBS"
  1757. cat > conftest.$ac_ext <<EOF
  1758. #line 1759 "configure"
  1759. #include "confdefs.h"
  1760.  
  1761. int main() { return 0; }
  1762. int t() {
  1763. setlocale()
  1764. ; return 0; }
  1765. EOF
  1766. if eval $ac_link; then
  1767.   rm -rf conftest*
  1768.   eval "ac_cv_lib_i=yes"
  1769. else
  1770.   rm -rf conftest*
  1771.   eval "ac_cv_lib_i=no"
  1772. fi
  1773. rm -f conftest*
  1774. LIBS="$ac_save_LIBS"
  1775.  
  1776. fi
  1777. if eval "test \"`echo '$ac_cv_lib_'i`\" = yes"; then
  1778.   echo "$ac_t""yes" 1>&6
  1779.     ac_tr_lib=HAVE_LIB`echo i | tr 'a-z' 'A-Z'`
  1780.   cat >> confdefs.h <<EOF
  1781. #define $ac_tr_lib 1
  1782. EOF
  1783.  
  1784.   LIBS="-li $LIBS"
  1785.  
  1786. else
  1787.   echo "$ac_t""no" 1>&6
  1788. cat >> confdefs.h <<\EOF
  1789. #define X_LOCALE 1
  1790. EOF
  1791.  
  1792. fi
  1793.  
  1794. fi
  1795.  
  1796.  
  1797. echo $ac_n "checking for -lseq""... $ac_c" 1>&6
  1798. if eval "test \"`echo '$''{'ac_cv_lib_seq'+set}'`\" = set"; then
  1799.   echo $ac_n "(cached) $ac_c" 1>&6
  1800. else
  1801.   ac_save_LIBS="$LIBS"
  1802. LIBS="-lseq  $LIBS"
  1803. cat > conftest.$ac_ext <<EOF
  1804. #line 1805 "configure"
  1805. #include "confdefs.h"
  1806.  
  1807. int main() { return 0; }
  1808. int t() {
  1809. getpseudotty()
  1810. ; return 0; }
  1811. EOF
  1812. if eval $ac_link; then
  1813.   rm -rf conftest*
  1814.   eval "ac_cv_lib_seq=yes"
  1815. else
  1816.   rm -rf conftest*
  1817.   eval "ac_cv_lib_seq=no"
  1818. fi
  1819. rm -f conftest*
  1820. LIBS="$ac_save_LIBS"
  1821.  
  1822. fi
  1823. if eval "test \"`echo '$ac_cv_lib_'seq`\" = yes"; then
  1824.   echo "$ac_t""yes" 1>&6
  1825.     ac_tr_lib=HAVE_LIB`echo seq | tr '[a-z]' '[A-Z]'`
  1826.   cat >> confdefs.h <<EOF
  1827. #define $ac_tr_lib 1
  1828. EOF
  1829.  
  1830.   LIBS="-lseq $LIBS"
  1831.  
  1832. else
  1833.   echo "$ac_t""no" 1>&6
  1834. fi
  1835.  
  1836.  
  1837. # If we find X, set shell vars x_includes and x_libraries to the
  1838. # paths, otherwise set no_x=yes.
  1839. # Uses ac_ vars as temps to allow command line to override cache and checks.
  1840. # --without-x overrides everything else, but does not touch the cache.
  1841. echo $ac_n "checking for X""... $ac_c" 1>&6
  1842.  
  1843. # Check whether --with-x or --without-x was given.
  1844. withval="$with_x"
  1845. if test -n "$withval"; then
  1846.   :
  1847. fi
  1848.  
  1849. if test "x$with_x" = xno; then
  1850.   no_x=yes
  1851. else
  1852.   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  1853.     no_x=
  1854.   else
  1855. if eval "test \"`echo '$''{'ac_cv_path_x'+set}'`\" = set"; then
  1856.   echo $ac_n "(cached) $ac_c" 1>&6
  1857. else
  1858.   # One or both of the vars are not set, and there is no cached value.
  1859. no_x=yes
  1860. rm -fr conftestdir
  1861. if mkdir conftestdir; then
  1862.   cd conftestdir
  1863.   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  1864.   cat > Imakefile <<'EOF'
  1865. acfindx:
  1866.     @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  1867. EOF
  1868.   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  1869.     no_x=
  1870.     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1871.     eval `make acfindx 2>/dev/null | grep -v make`
  1872.     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  1873.     if test ! -f $ac_im_usrlibdir/libX11.a && test -f $ac_im_libdir/libX11.a
  1874.     then
  1875.       ac_im_usrlibdir=$ac_im_libdir
  1876.     fi
  1877.     # Screen out bogus values from the imake configuration.
  1878.     case "$ac_im_incroot" in
  1879.     /usr/include) ;;
  1880.     *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
  1881.     esac
  1882.     case "$ac_im_usrlibdir" in
  1883.     /usr/lib | /lib) ;;
  1884.     *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
  1885.     esac
  1886.   fi
  1887.   cd ..
  1888.   rm -fr conftestdir
  1889. fi
  1890.  
  1891. if test "$no_x" = yes; then
  1892. test -z "$x_direct_test_library" && x_direct_test_library=Xt
  1893. test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  1894. test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  1895. cat > conftest.$ac_ext <<EOF
  1896. #line 1897 "configure"
  1897. #include "confdefs.h"
  1898. #include <$x_direct_test_include>
  1899. EOF
  1900. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1901. ac_err=`grep -v '^ *+' conftest.out`
  1902. if test -z "$ac_err"; then
  1903.   rm -rf conftest*
  1904.   no_x= ac_x_includes=
  1905. else
  1906.   echo "$ac_err" >&5
  1907.   rm -rf conftest*
  1908.     for ac_dir in               \
  1909.     /usr/X11R6/include        \
  1910.     /usr/X11R5/include        \
  1911.     /usr/X11R4/include        \
  1912.                               \
  1913.     /usr/include/X11R6        \
  1914.     /usr/include/X11R5        \
  1915.     /usr/include/X11R4        \
  1916.                               \
  1917.     /usr/local/X11R6/include  \
  1918.     /usr/local/X11R5/include  \
  1919.     /usr/local/X11R4/include  \
  1920.                               \
  1921.     /usr/local/include/X11R6  \
  1922.     /usr/local/include/X11R5  \
  1923.     /usr/local/include/X11R4  \
  1924.                               \
  1925.     /usr/X11/include          \
  1926.     /usr/include/X11          \
  1927.     /usr/local/X11/include    \
  1928.     /usr/local/include/X11    \
  1929.                               \
  1930.     /usr/X386/include         \
  1931.     /usr/x386/include         \
  1932.     /usr/XFree86/include/X11  \
  1933.                               \
  1934.     /usr/include              \
  1935.     /usr/local/include        \
  1936.     /usr/unsupported/include  \
  1937.     /usr/athena/include       \
  1938.     /usr/local/x11r5/include  \
  1939.     /usr/lpp/Xamples/include  \
  1940.                               \
  1941.     /usr/openwin/include      \
  1942.     /usr/openwin/share/include \
  1943.     ; \
  1944.   do
  1945.     if test -r "$ac_dir/$x_direct_test_include"; then
  1946.       no_x= ac_x_includes=$ac_dir
  1947.       break
  1948.     fi
  1949.   done
  1950. fi
  1951. rm -f conftest*
  1952.  
  1953. # Check for the libraries.
  1954. # See if we find them without any special options.
  1955. # Don't add to $LIBS permanently.
  1956. ac_save_LIBS="$LIBS"
  1957. LIBS="-l$x_direct_test_library $LIBS"
  1958. cat > conftest.$ac_ext <<EOF
  1959. #line 1960 "configure"
  1960. #include "confdefs.h"
  1961.  
  1962. int main() { return 0; }
  1963. int t() {
  1964. ${x_direct_test_function}()
  1965. ; return 0; }
  1966. EOF
  1967. if eval $ac_link; then
  1968.   rm -rf conftest*
  1969.   LIBS="$ac_save_LIBS" no_x= ac_x_libraries=
  1970. else
  1971.   rm -rf conftest*
  1972.   LIBS="$ac_save_LIBS"
  1973. # First see if replacing the include by lib works.
  1974. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  1975.     /usr/X11R6/lib        \
  1976.     /usr/X11R5/lib        \
  1977.     /usr/X11R4/lib        \
  1978.                           \
  1979.     /usr/lib/X11R6        \
  1980.     /usr/lib/X11R5        \
  1981.     /usr/lib/X11R4        \
  1982.                           \
  1983.     /usr/local/X11R6/lib  \
  1984.     /usr/local/X11R5/lib  \
  1985.     /usr/local/X11R4/lib  \
  1986.                           \
  1987.     /usr/local/lib/X11R6  \
  1988.     /usr/local/lib/X11R5  \
  1989.     /usr/local/lib/X11R4  \
  1990.                           \
  1991.     /usr/X11/lib          \
  1992.     /usr/lib/X11          \
  1993.     /usr/local/X11/lib    \
  1994.     /usr/local/lib/X11    \
  1995.                           \
  1996.     /usr/X386/lib         \
  1997.     /usr/x386/lib         \
  1998.     /usr/XFree86/lib/X11  \
  1999.                           \
  2000.     /usr/lib              \
  2001.     /usr/local/lib        \
  2002.     /usr/unsupported/lib  \
  2003.     /usr/athena/lib       \
  2004.     /usr/local/x11r5/lib  \
  2005.     /usr/lpp/Xamples/lib  \
  2006.                           \
  2007.     /usr/openwin/lib      \
  2008.     /usr/openwin/share/lib \
  2009.     ; \
  2010. do
  2011.   for ac_extension in a so sl; do
  2012.     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  2013.       no_x= ac_x_libraries=$ac_dir
  2014.       break 2
  2015.     fi
  2016.   done
  2017. done
  2018. fi
  2019. rm -f conftest*
  2020.  
  2021. fi
  2022. if test "$no_x" = yes; then
  2023.   ac_cv_path_x="no_x=yes"
  2024. else
  2025.   ac_cv_path_x="no_x= ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  2026. fi
  2027. fi
  2028.   fi
  2029.   eval "$ac_cv_path_x"
  2030. fi # $with_x != no
  2031.  
  2032. if test "$no_x" = yes; then
  2033.   echo "$ac_t""no" 1>&6
  2034. else
  2035.   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  2036.   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  2037.   ac_cv_path_x="no_x= ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  2038.   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
  2039. fi
  2040.  
  2041. if test "$no_x" = yes; then 
  2042.   # Not all programs may use this symbol, but it does not hurt to define it.
  2043.   X_CFLAGS="$X_CFLAGS -DX_DISPLAY_MISSING"
  2044. else
  2045.   if test -n "$x_includes"; then
  2046.     X_CFLAGS="$X_CFLAGS -I$x_includes"
  2047.   fi
  2048.  
  2049.   # It would be nice to have a more robust check for the -R ld option than
  2050.   # just checking for Solaris.
  2051.   # It would also be nice to do this for all -L options, not just this one.
  2052.   if test -n "$x_libraries"; then
  2053.     X_LIBS="$X_LIBS -L$x_libraries"
  2054.     if test "`(uname) 2>/dev/null`" = SunOS &&
  2055.       uname -r | grep '^5' >/dev/null; then
  2056.       X_LIBS="$X_LIBS -R$x_libraries"
  2057.     fi
  2058.   fi
  2059.  
  2060.   # Check for libraries that X11R6 Xt/Xaw programs need.
  2061.  
  2062.   ac_save_LDFLAGS="$LDFLAGS"
  2063.   LDFLAGS="$LDFLAGS -L$x_libraries"
  2064.   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  2065.   # check for ICE first), but we must link in the order -lSM -lICE or
  2066.   # we get undefined symbols.  So assume we have SM if we have ICE.
  2067.   # These have to be linked with before -lX11, unlike the other
  2068.   # libraries we check for below, so use a different variable.
  2069.   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  2070.   echo $ac_n "checking for -lICE""... $ac_c" 1>&6
  2071. if eval "test \"`echo '$''{'ac_cv_lib_ICE'+set}'`\" = set"; then
  2072.   echo $ac_n "(cached) $ac_c" 1>&6
  2073. else
  2074.   ac_save_LIBS="$LIBS"
  2075. LIBS="-lICE  $LIBS"
  2076. cat > conftest.$ac_ext <<EOF
  2077. #line 2078 "configure"
  2078. #include "confdefs.h"
  2079.  
  2080. int main() { return 0; }
  2081. int t() {
  2082. IceConnectionNumber()
  2083. ; return 0; }
  2084. EOF
  2085. if eval $ac_link; then
  2086.   rm -rf conftest*
  2087.   eval "ac_cv_lib_ICE=yes"
  2088. else
  2089.   rm -rf conftest*
  2090.   eval "ac_cv_lib_ICE=no"
  2091. fi
  2092. rm -f conftest*
  2093. LIBS="$ac_save_LIBS"
  2094.  
  2095. fi
  2096. if eval "test \"`echo '$ac_cv_lib_'ICE`\" = yes"; then
  2097.   echo "$ac_t""yes" 1>&6
  2098.   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  2099. else
  2100.   echo "$ac_t""no" 1>&6
  2101. fi
  2102.  
  2103.   LDFLAGS="$ac_save_LDFLAGS"
  2104.  
  2105.   # Check for system-dependent libraries X programs must link with.
  2106.  
  2107.   if test "$ISC" = yes; then
  2108.     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  2109.   else
  2110.     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  2111.     # libraries were built with DECnet support.  And karl@cs.umb.edu says
  2112.     # the Alpha needs dnet_stub (dnet does not exist).
  2113.     echo $ac_n "checking for -ldnet""... $ac_c" 1>&6
  2114. if eval "test \"`echo '$''{'ac_cv_lib_dnet'+set}'`\" = set"; then
  2115.   echo $ac_n "(cached) $ac_c" 1>&6
  2116. else
  2117.   ac_save_LIBS="$LIBS"
  2118. LIBS="-ldnet  $LIBS"
  2119. cat > conftest.$ac_ext <<EOF
  2120. #line 2121 "configure"
  2121. #include "confdefs.h"
  2122.  
  2123. int main() { return 0; }
  2124. int t() {
  2125. dnet_ntoa()
  2126. ; return 0; }
  2127. EOF
  2128. if eval $ac_link; then
  2129.   rm -rf conftest*
  2130.   eval "ac_cv_lib_dnet=yes"
  2131. else
  2132.   rm -rf conftest*
  2133.   eval "ac_cv_lib_dnet=no"
  2134. fi
  2135. rm -f conftest*
  2136. LIBS="$ac_save_LIBS"
  2137.  
  2138. fi
  2139. if eval "test \"`echo '$ac_cv_lib_'dnet`\" = yes"; then
  2140.   echo "$ac_t""yes" 1>&6
  2141.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  2142. else
  2143.   echo "$ac_t""no" 1>&6
  2144. fi
  2145.  
  2146.     if test $ac_cv_lib_dnet = no; then
  2147.       echo $ac_n "checking for -ldnet_stub""... $ac_c" 1>&6
  2148. if eval "test \"`echo '$''{'ac_cv_lib_dnet_stub'+set}'`\" = set"; then
  2149.   echo $ac_n "(cached) $ac_c" 1>&6
  2150. else
  2151.   ac_save_LIBS="$LIBS"
  2152. LIBS="-ldnet_stub  $LIBS"
  2153. cat > conftest.$ac_ext <<EOF
  2154. #line 2155 "configure"
  2155. #include "confdefs.h"
  2156.  
  2157. int main() { return 0; }
  2158. int t() {
  2159. dnet_ntoa()
  2160. ; return 0; }
  2161. EOF
  2162. if eval $ac_link; then
  2163.   rm -rf conftest*
  2164.   eval "ac_cv_lib_dnet_stub=yes"
  2165. else
  2166.   rm -rf conftest*
  2167.   eval "ac_cv_lib_dnet_stub=no"
  2168. fi
  2169. rm -f conftest*
  2170. LIBS="$ac_save_LIBS"
  2171.  
  2172. fi
  2173. if eval "test \"`echo '$ac_cv_lib_'dnet_stub`\" = yes"; then
  2174.   echo "$ac_t""yes" 1>&6
  2175.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  2176. else
  2177.   echo "$ac_t""no" 1>&6
  2178. fi
  2179.  
  2180.     fi
  2181.  
  2182.     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  2183.     # to get the SysV transport functions.
  2184.     # Not sure which flavor of 386 UNIX this is, but it seems harmless to
  2185.     # check for it.
  2186.     echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
  2187. if eval "test \"`echo '$''{'ac_cv_lib_nsl'+set}'`\" = set"; then
  2188.   echo $ac_n "(cached) $ac_c" 1>&6
  2189. else
  2190.   ac_save_LIBS="$LIBS"
  2191. LIBS="-lnsl  $LIBS"
  2192. cat > conftest.$ac_ext <<EOF
  2193. #line 2194 "configure"
  2194. #include "confdefs.h"
  2195.  
  2196. int main() { return 0; }
  2197. int t() {
  2198. t_accept()
  2199. ; return 0; }
  2200. EOF
  2201. if eval $ac_link; then
  2202.   rm -rf conftest*
  2203.   eval "ac_cv_lib_nsl=yes"
  2204. else
  2205.   rm -rf conftest*
  2206.   eval "ac_cv_lib_nsl=no"
  2207. fi
  2208. rm -f conftest*
  2209. LIBS="$ac_save_LIBS"
  2210.  
  2211. fi
  2212. if eval "test \"`echo '$ac_cv_lib_'nsl`\" = yes"; then
  2213.   echo "$ac_t""yes" 1>&6
  2214.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  2215. else
  2216.   echo "$ac_t""no" 1>&6
  2217. fi
  2218.  
  2219.  
  2220.     # lieder@skyler.mavd.honeywell.com says without -lsocket,
  2221.     # socket/setsockopt and other routines are undefined under SCO ODT 2.0.
  2222.     # But -lsocket is broken on IRIX, according to simon@lia.di.epfl.ch.
  2223.     if test "`(uname) 2>/dev/null`" != IRIX; then
  2224.       echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
  2225. if eval "test \"`echo '$''{'ac_cv_lib_socket'+set}'`\" = set"; then
  2226.   echo $ac_n "(cached) $ac_c" 1>&6
  2227. else
  2228.   ac_save_LIBS="$LIBS"
  2229. LIBS="-lsocket  $LIBS"
  2230. cat > conftest.$ac_ext <<EOF
  2231. #line 2232 "configure"
  2232. #include "confdefs.h"
  2233.  
  2234. int main() { return 0; }
  2235. int t() {
  2236. socket()
  2237. ; return 0; }
  2238. EOF
  2239. if eval $ac_link; then
  2240.   rm -rf conftest*
  2241.   eval "ac_cv_lib_socket=yes"
  2242. else
  2243.   rm -rf conftest*
  2244.   eval "ac_cv_lib_socket=no"
  2245. fi
  2246. rm -f conftest*
  2247. LIBS="$ac_save_LIBS"
  2248.  
  2249. fi
  2250. if eval "test \"`echo '$ac_cv_lib_'socket`\" = yes"; then
  2251.   echo "$ac_t""yes" 1>&6
  2252.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lsocket"
  2253. else
  2254.   echo "$ac_t""no" 1>&6
  2255. fi
  2256.  
  2257.     fi
  2258.   fi
  2259. fi
  2260.  
  2261.  
  2262.  
  2263. # Make sure we can run config.sub.
  2264. if $ac_config_sub sun4 >/dev/null 2>&1; then :
  2265. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  2266. fi
  2267.  
  2268. echo $ac_n "checking host system type""... $ac_c" 1>&6
  2269.  
  2270. host_alias=$host
  2271. case "$host_alias" in
  2272. NONE)
  2273.   case $nonopt in
  2274.   NONE)
  2275.     if host_alias=`$ac_config_guess`; then :
  2276.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  2277.     fi ;;
  2278.   *) host_alias=$nonopt ;;
  2279.   esac ;;
  2280. esac
  2281.  
  2282. host=`$ac_config_sub $host_alias`
  2283. host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  2284. host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  2285. host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  2286. echo "$ac_t""$host" 1>&6
  2287.  
  2288.  
  2289.  
  2290. USE_PTYS=0
  2291. case "$host" in
  2292.   *-*-hpux* )
  2293.     cat >> confdefs.h <<\EOF
  2294. #define PTY_TTY_NAME_SPRINTF sprintf (pty_name, "/dev/pty/tty%c%x", c, i);
  2295. EOF
  2296.  
  2297.     cat >> confdefs.h <<\EOF
  2298. #define PTY_NAME_SPRINTF sprintf (pty_name, "/dev/ptym/pty%c%x", c, i);
  2299. EOF
  2300.  
  2301.     USE_PTYS=1
  2302.     if test "$GCC" = yes; then
  2303.       CONF_CFLAGS="-fwritable-strings"
  2304.     else
  2305.  
  2306.  
  2307.       CONF_CFLAGS="-Aa -D_HPUX_SOURCE"
  2308.     fi
  2309.  
  2310.  
  2311.     if test -d /usr/include/X11R5; then
  2312.       X_CFLAGS="-I/usr/include/X11R5 $X_CFLAGS"
  2313.       X_LIBS="-L/usr/lib/X11R5 -L/usr/lib/X11R4 $X_LIBS"
  2314.     elif test -d /usr/include/X11R4; then
  2315.       X_CFLAGS="-I/usr/include/X11R4 $X_CFLAGS"
  2316.       X_LIBS="-L/usr/lib/X11R4 $X_LIBS"
  2317.     fi
  2318.     if test -d /MIT/X11R5/include; then
  2319.       X_CFLAGS="-I/MIT/X11R5/include $X_CFLAGS"
  2320.       X_LIBS="-L/MIT/X11R5/lib $X_LIBS"
  2321.     elif test -d /usr/local/include/X11R5; then
  2322.       X_CFLAGS="-I/usr/local/include/X11R5 $X_CFLAGS"
  2323.       X_LIBS="-L/usr/local/lib/X11R5 $X_LIBS"
  2324.     fi
  2325.   ;;
  2326.  
  2327.   romp-ibm-aix* )
  2328.     cat >> confdefs.h <<\EOF
  2329. #define IBMRTAIX 1
  2330. EOF
  2331.  
  2332.     USE_PTYS=1
  2333.   ;;
  2334.  
  2335.   i386-ibm-aix )
  2336.     USE_PTYS=1
  2337.     if test "$GCC" = yes; then
  2338.       CONF_CFLAGS="-fwritable-strings"
  2339.     fi
  2340.   ;;
  2341.  
  2342.   *-*-aix3* | *-*-bosx* )
  2343.     cat >> confdefs.h <<\EOF
  2344. #define PTY_ITERATION 
  2345. EOF
  2346.  
  2347.     cat >> confdefs.h <<\EOF
  2348. #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptc");
  2349. EOF
  2350.  
  2351.     cat >> confdefs.h <<\EOF
  2352. #define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));
  2353. EOF
  2354.  
  2355.     USE_PTYS=1
  2356.   ;;
  2357.  
  2358.   *-*-cxux* )
  2359.     cat >> confdefs.h <<\EOF
  2360. #define FIRST_PTY_LETTER 'A'
  2361. EOF
  2362.  
  2363.     cat >> confdefs.h <<\EOF
  2364. #define LAST_PTY_LETTER 'P'
  2365. EOF
  2366.  
  2367.     USE_PTYS=1
  2368.   ;;
  2369.  
  2370.   *-*-uniplus* )
  2371.     cat >> confdefs.h <<\EOF
  2372. #define UNIPLUS 1
  2373. EOF
  2374.  
  2375.     USE_PTYS=1
  2376.   ;;
  2377.  
  2378.   *-*-rtu* )
  2379.     cat >> confdefs.h <<\EOF
  2380. #define FIRST_PTY_LETTER 'z'
  2381. EOF
  2382.  
  2383.     cat >> confdefs.h <<\EOF
  2384. #define PTY_TTY_NAME_SPRINTF sprintf (pty_name, "/dev/ttyp%x", i);
  2385. EOF
  2386.  
  2387.     cat >> confdefs.h <<\EOF
  2388. #define PTY_NAME_SPRINTF sprintf (pty_name, "/dev/pty%x", i);
  2389. EOF
  2390.  
  2391.     cat >> confdefs.h <<\EOF
  2392. #define RTU 1
  2393. EOF
  2394.  
  2395.   ;;
  2396.  
  2397.   *-*-iris* | *-*-irix3* )
  2398.     cat >> confdefs.h <<\EOF
  2399. #define PTY_ITERATION 
  2400. EOF
  2401.  
  2402.     cat >> confdefs.h <<\EOF
  2403. #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptc");
  2404. EOF
  2405.  
  2406.     cat >> confdefs.h <<\EOF
  2407. #define PTY_TTY_NAME_SPRINTF sprintf (pty_name, "/dev/ttyq%d", minor(stb.st_rdev));
  2408. EOF
  2409.  
  2410.     USE_PTYS=1
  2411.   ;;
  2412.  
  2413.   *-*-irix* )
  2414.     USE_PTYS=1
  2415.   ;;
  2416.  
  2417.   *-*-sunos4* | *-*-solaris1* )
  2418.  
  2419.  
  2420.     if test "$GCC" = yes; then
  2421.       PRE_XMULIB="-static"
  2422.       POST_XMULIB="-dynamic"
  2423.     else
  2424.       PRE_XMULIB="-Bstatic"
  2425.       POST_XMULIB="-Bdynamic"
  2426.     fi
  2427.   ;;
  2428.  
  2429.   *-*-sunos5* | *-*-solaris2* )
  2430.     USE_PTYS=1
  2431.  
  2432.  
  2433.     X_LIBS="$X_LIBS -lelf"
  2434.   ;;
  2435.  
  2436.   *-*-sco* )
  2437.     cat >> confdefs.h <<\EOF
  2438. #define PTY_ITERATION for (i = 0; ; i++)
  2439. EOF
  2440.  
  2441.     cat >> confdefs.h <<\EOF
  2442. #define PTY_NAME_SPRINTF sprintf (pty_name, "/dev/ptyp%d", i);
  2443. EOF
  2444.  
  2445.     cat >> confdefs.h <<\EOF
  2446. #define PTY_TTY_NAME_SPRINTF sprintf (pty_name, "/dev/ttyp%d", i);
  2447. EOF
  2448.  
  2449.     USE_PTYS=1
  2450.   ;;
  2451.     
  2452.   *-*-dynix* | *-*-ptx* )
  2453.     USE_PTYS=1
  2454.   ;;
  2455.  
  2456.   *-*-esix* )
  2457.     USE_PTYS=1
  2458.   ;;
  2459.  
  2460.   *-*-usg5-4* | *-*-sysvr4* )
  2461.     USE_PTYS=1
  2462.   ;;
  2463.  
  2464.   *-*-usg* | *-*-sysv* | *-*-aix* )
  2465.     USE_PTYS=1
  2466.   ;;
  2467.  
  2468.   vax-*-ultrix )
  2469.     if test "$GCC" = yes; then
  2470.       CONF_CFLAGS="-fwritable-strings"
  2471.     fi
  2472.   ;;
  2473. esac
  2474.  
  2475.  
  2476.  
  2477.  
  2478.  
  2479.  
  2480. echo $ac_n "checking whether ptys or pipes should be used""... $ac_c" 1>&6
  2481. # Check whether --enable-ptys or --disable-ptys was given.
  2482. enableval="$enable_ptys"
  2483. if test -n "$enableval"; then
  2484.   if test "$enableval" = yes; then
  2485.   USE_PTYS=1
  2486.   echo "$ac_t""ptys (user override)" 1>&6
  2487. fi
  2488. if test "$enableval" = no; then
  2489.   USE_PTYS=0
  2490.   echo "$ac_t""pipes (user override)" 1>&6
  2491. fi
  2492. else
  2493.   if test "$USE_PTYS" = 1; then
  2494.   echo "$ac_t""ptys" 1>&6
  2495. else
  2496.   echo "$ac_t""pipes" 1>&6
  2497. fi
  2498. fi
  2499.  
  2500. cat >> confdefs.h <<EOF
  2501. #define USE_PTYS $USE_PTYS
  2502. EOF
  2503.  
  2504.  
  2505. # Check whether --enable-zippy or --disable-zippy was given.
  2506. enableval="$enable_zippy"
  2507. if test -n "$enableval"; then
  2508.   if test "$enableval" = yes; then
  2509.   PATCHLEVEL="$PATCHLEVEL"-zippy
  2510.   cat >> confdefs.h <<\EOF
  2511. #define ZIPPY 1
  2512. EOF
  2513.  
  2514.   ZIPPY_O=zippy.o
  2515.   ZIPPY_H=zippy.h
  2516. fi
  2517. fi
  2518.  
  2519.   
  2520.   
  2521.  
  2522. cat >> confdefs.h <<EOF
  2523. #define PRODUCT "$PRODUCT"
  2524. EOF
  2525.  
  2526. cat >> confdefs.h <<EOF
  2527. #define VERSION "$VERSION"
  2528. EOF
  2529.  
  2530. cat >> confdefs.h <<EOF
  2531. #define PATCHLEVEL "$PATCHLEVEL"
  2532. EOF
  2533.  
  2534.  
  2535.  
  2536.  
  2537.  
  2538. trap '' 1 2 15
  2539. cat > confcache <<\EOF
  2540. # This file is a shell script that caches the results of configure
  2541. # tests run on this system so they can be shared between configure
  2542. # scripts and configure runs.  It is not useful on other systems.
  2543. # If it contains results you don't want to keep, you may remove or edit it.
  2544. #
  2545. # By default, configure uses ./config.cache as the cache file,
  2546. # creating it if it does not exist already.  You can give configure
  2547. # the --cache-file=FILE option to use a different cache file; that is
  2548. # what configure does when it calls configure scripts in
  2549. # subdirectories, so they share the cache.
  2550. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2551. # config.status only pays attention to the cache file if you give it the
  2552. # --recheck option to rerun configure.
  2553. #
  2554. EOF
  2555. # Ultrix sh set writes to stderr and can't be redirected directly,
  2556. # and sets the high bit in the cache file unless we assign to the vars.
  2557. (set) 2>&1 |
  2558.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  2559.   >> confcache
  2560. if cmp -s $cache_file confcache; then
  2561.   :
  2562. else
  2563.   if test -w $cache_file; then
  2564.     echo "updating cache $cache_file"
  2565.     cat confcache > $cache_file
  2566.   else
  2567.     echo "not updating unwritable cache $cache_file"
  2568.   fi
  2569. fi
  2570. rm -f confcache
  2571.  
  2572. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2573.  
  2574. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2575. # Let make expand exec_prefix.
  2576. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2577.  
  2578. # Any assignment to VPATH causes Sun make to only execute
  2579. # the first set of double-colon rules, so remove it if not needed.
  2580. # If there is a colon in the path, we need to keep it.
  2581. if test "x$srcdir" = x.; then
  2582.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2583. fi
  2584.  
  2585. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2586.  
  2587. DEFS=-DHAVE_CONFIG_H
  2588.  
  2589. # Without the "./", some shells look in PATH for config.status.
  2590. : ${CONFIG_STATUS=./config.status}
  2591.  
  2592. echo creating $CONFIG_STATUS
  2593. rm -f $CONFIG_STATUS
  2594. cat > $CONFIG_STATUS <<EOF
  2595. #! /bin/sh
  2596. # Generated automatically by configure.
  2597. # Run this file to recreate the current configuration.
  2598. # This directory was configured as follows,
  2599. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2600. #
  2601. # $0 $ac_configure_args
  2602. #
  2603. # Compiler output produced by configure, useful for debugging
  2604. # configure, is in ./config.log if it exists.
  2605.  
  2606. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2607. for ac_option
  2608. do
  2609.   case "\$ac_option" in
  2610.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2611.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2612.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2613.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2614.     echo "$CONFIG_STATUS generated by autoconf version 2.3"
  2615.     exit 0 ;;
  2616.   -help | --help | --hel | --he | --h)
  2617.     echo "\$ac_cs_usage"; exit 0 ;;
  2618.   *) echo "\$ac_cs_usage"; exit 1 ;;
  2619.   esac
  2620. done
  2621.  
  2622. ac_given_srcdir=$srcdir
  2623. ac_given_INSTALL="$INSTALL"
  2624.  
  2625. trap 'rm -fr `echo "Makefile comment.awk:comment.in cmail xboard.texinfo config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2626.  
  2627. # Protect against being on the right side of a sed subst in config.status. 
  2628. sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
  2629.  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  2630. $ac_vpsub
  2631. $extrasub
  2632. s%@CFLAGS@%$CFLAGS%g
  2633. s%@CPPFLAGS@%$CPPFLAGS%g
  2634. s%@CXXFLAGS@%$CXXFLAGS%g
  2635. s%@DEFS@%$DEFS%g
  2636. s%@LDFLAGS@%$LDFLAGS%g
  2637. s%@LIBS@%$LIBS%g
  2638. s%@exec_prefix@%$exec_prefix%g
  2639. s%@prefix@%$prefix%g
  2640. s%@program_transform_name@%$program_transform_name%g
  2641. s%@CC@%$CC%g
  2642. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  2643. s%@INSTALL_DATA@%$INSTALL_DATA%g
  2644. s%@LEX@%$LEX%g
  2645. s%@CPP@%$CPP%g
  2646. s%@LEXLIB@%$LEXLIB%g
  2647. s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
  2648. s%@RSH@%$RSH%g
  2649. s%@NROFF@%$NROFF%g
  2650. s%@NROFFFLAGS@%$NROFFFLAGS%g
  2651. s%@AWKPATH@%$AWKPATH%g
  2652. s%@PERLPATH@%$PERLPATH%g
  2653. s%@X_CFLAGS@%$X_CFLAGS%g
  2654. s%@X_PRE_LIBS@%$X_PRE_LIBS%g
  2655. s%@X_LIBS@%$X_LIBS%g
  2656. s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  2657. s%@host@%$host%g
  2658. s%@host_alias@%$host_alias%g
  2659. s%@host_cpu@%$host_cpu%g
  2660. s%@host_vendor@%$host_vendor%g
  2661. s%@host_os@%$host_os%g
  2662. s%@PRE_XMULIB@%$PRE_XMULIB%g
  2663. s%@POST_XMULIB@%$POST_XMULIB%g
  2664. s%@CONF_CFLAGS@%$CONF_CFLAGS%g
  2665. s%@CONF_LDFLAGS@%$CONF_LDFLAGS%g
  2666. s%@ZIPPY_O@%$ZIPPY_O%g
  2667. s%@ZIPPY_H@%$ZIPPY_H%g
  2668. s%@PRODUCT@%$PRODUCT%g
  2669. s%@VERSION@%$VERSION%g
  2670. s%@PATCHLEVEL@%$PATCHLEVEL%g
  2671.  
  2672. CEOF
  2673. EOF
  2674. cat >> $CONFIG_STATUS <<EOF
  2675.  
  2676. CONFIG_FILES=\${CONFIG_FILES-"Makefile comment.awk:comment.in cmail xboard.texinfo"}
  2677. EOF
  2678. cat >> $CONFIG_STATUS <<\EOF
  2679. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2680.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  2681.   case "$ac_file" in
  2682.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2683.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2684.   *) ac_file_in="${ac_file}.in" ;;
  2685.   esac
  2686.  
  2687.   # Adjust relative srcdir, etc. for subdirectories.
  2688.  
  2689.   # Remove last slash and all that follows it.  Not all systems have dirname.
  2690.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2691.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2692.     # The file is in a subdirectory.
  2693.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2694.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2695.     # A "../" for each directory in $ac_dir_suffix.
  2696.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2697.   else
  2698.     ac_dir_suffix= ac_dots=
  2699.   fi
  2700.  
  2701.   case "$ac_given_srcdir" in
  2702.   .)  srcdir=.
  2703.       if test -z "$ac_dots"; then top_srcdir=.
  2704.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2705.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2706.   *) # Relative path.
  2707.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2708.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2709.   esac
  2710.  
  2711.   case "$ac_given_INSTALL" in
  2712.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2713.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2714.   esac
  2715.   echo creating "$ac_file"
  2716.   rm -f "$ac_file"
  2717.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2718.   case "$ac_file" in
  2719.   *Makefile*) ac_comsub="1i\\
  2720. # $configure_input" ;;
  2721.   *) ac_comsub= ;;
  2722.   esac
  2723.   sed -e "$ac_comsub
  2724. s%@configure_input@%$configure_input%g
  2725. s%@srcdir@%$srcdir%g
  2726. s%@top_srcdir@%$top_srcdir%g
  2727. s%@INSTALL@%$INSTALL%g
  2728. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  2729. fi; done
  2730. rm -f conftest.subs
  2731.  
  2732. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  2733. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  2734. #
  2735. # ac_d sets the value in "#define NAME VALUE" lines.
  2736. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  2737. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  2738. ac_dC='\3'
  2739. ac_dD='%g'
  2740. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2741. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2742. ac_uB='\([     ]\)%\1#\2define\3'
  2743. ac_uC=' '
  2744. ac_uD='\4%g'
  2745. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2746. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2747. ac_eB='$%\1#\2define\3'
  2748. ac_eC=' '
  2749. ac_eD='%g'
  2750.  
  2751. CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  2752. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  2753.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  2754.   case "$ac_file" in
  2755.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  2756.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2757.   *) ac_file_in="${ac_file}.in" ;;
  2758.   esac
  2759.  
  2760.   echo creating $ac_file
  2761.  
  2762.   rm -f conftest.frag conftest.in conftest.out
  2763.   cp $ac_given_srcdir/$ac_file_in conftest.in
  2764.  
  2765. EOF
  2766.  
  2767. # Transform confdefs.h into a sed script conftest.vals that substitutes
  2768. # the proper values into config.h.in to produce config.h.  And first:
  2769. # Protect against being on the right side of a sed subst in config.status. 
  2770. # Protect against being in an unquoted here document in config.status.
  2771. rm -f conftest.vals
  2772. cat > conftest.hdr <<\EOF
  2773. s/[\\&%]/\\&/g
  2774. s%[\\$`]%\\&%g
  2775. s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  2776. s%ac_d%ac_u%gp
  2777. s%ac_u%ac_e%gp
  2778. EOF
  2779. sed -n -f conftest.hdr confdefs.h > conftest.vals
  2780. rm -f conftest.hdr
  2781.  
  2782. # This sed command replaces #undef with comments.  This is necessary, for
  2783. # example, in the case of _POSIX_SOURCE, which is predefined and required
  2784. # on some systems where configure will not decide to define it.
  2785. cat >> conftest.vals <<\EOF
  2786. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  2787. EOF
  2788.  
  2789. # Break up conftest.vals because some shells have a limit on
  2790. # the size of here documents, and old seds have small limits too.
  2791. # Maximum number of lines to put in a single here document.
  2792. ac_max_here_lines=12
  2793.  
  2794. rm -f conftest.tail
  2795. while :
  2796. do
  2797.   ac_lines=`grep -c . conftest.vals`
  2798.   # grep -c gives empty output for an empty file on some AIX systems.
  2799.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2800.   # Write a limited-size here document to conftest.frag.
  2801.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  2802.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  2803.   echo 'CEOF
  2804.   sed -f conftest.frag conftest.in > conftest.out
  2805.   rm -f conftest.in
  2806.   mv conftest.out conftest.in
  2807. ' >> $CONFIG_STATUS
  2808.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  2809.   rm -f conftest.vals
  2810.   mv conftest.tail conftest.vals
  2811. done
  2812. rm -f conftest.vals
  2813.  
  2814. cat >> $CONFIG_STATUS <<\EOF
  2815.   rm -f conftest.frag conftest.h
  2816.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  2817.   cat conftest.in >> conftest.h
  2818.   rm -f conftest.in
  2819.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  2820.     echo "$ac_file is unchanged"
  2821.     rm -f conftest.h
  2822.   else
  2823.     rm -f $ac_file
  2824.     mv conftest.h $ac_file
  2825.   fi
  2826. fi; done
  2827.  
  2828.  
  2829. test -z "$CONFIG_HEADERS" || date > stamp-h
  2830. chmod 755 comment.awk cmail
  2831. rm -f *.o
  2832.  
  2833. exit 0
  2834. EOF
  2835. chmod +x $CONFIG_STATUS
  2836. rm -fr confdefs* $ac_clean_files
  2837. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2838.  
  2839.